package org.filetransfer.file_transfer_java_backend.utils;
import java.util.Random;

public class PickupCodeGenerator {

    private static final String CHAR_POOL = "ABCDEFHIKLMNOPQRSTUVWXYZ0123456789";

    public static String generateCode() {
        Random random = new Random();
        StringBuilder code = new StringBuilder(4);
        for (int i = 0; i < 4; i++) {
            int index = random.nextInt(CHAR_POOL.length());
            code.append(CHAR_POOL.charAt(index));
        }
        return code.toString();
    }
}
